package com.teradata.tool.bean;

import java.sql.Date;

import com.teradata.tool.util.StringUtils;

public class GlAcctCheckInfoBean {
	private String	checkId;
	private Date	checkDt;
	private String	checkDb;
	private String	checkGlTab;
	private String	orgId;
	private String	ccyCd;
	private String	itemId;
	private String	Deb_Crd_Ind;
	// private int glCnt;
	private double	acctBal;
	private double	glBal;

	public String getCheckId() {
		return checkId;
	}

	public void setCheckId(String checkId) {
		this.checkId = checkId;
	}

	public Date getCheckDt() {
		return checkDt;
	}

	public void setCheckDt(Date checkDt) {
		this.checkDt = checkDt;
	}

	public String getCheckDb() {
		return checkDb;
	}

	public void setCheckDb(String checkDb) {
		this.checkDb = checkDb;
	}

	public String getCheckGlTab() {
		return checkGlTab;
	}

	public void setCheckGlTab(String checkGlTab) {
		this.checkGlTab = checkGlTab;
	}

	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getCcyCd() {
		return ccyCd;
	}

	public void setCcyCd(String ccyCd) {
		this.ccyCd = ccyCd;
	}

	public String getItemId() {
		return itemId;
	}

	public void setItemId(String itemId) {
		this.itemId = itemId;
	}

	public String getDeb_Crd_Ind() {
		return Deb_Crd_Ind;
	}

	public void setDeb_Crd_Ind(String Deb_Crd_Ind) {
		this.Deb_Crd_Ind = Deb_Crd_Ind;
	}

	// public int getGlCnt() {
	// return glCnt;
	// }
	// public void setGlCnt(int glCnt) {
	// this.glCnt = glCnt;
	// }
	public double getAcctBal() {
		return acctBal;
	}

	public void setAcctBal(double acctBal) {
		this.acctBal = acctBal;
	}

	public double getGlBal() {
		return glBal;
	}

	public void setGlBal(double glBal) {
		this.glBal = glBal;
	}

	public String getInfo(int index) throws Exception {
		if (index == 1) {
			return checkId;
		} else if (index == 2) {
			return checkDt.toString();
		} else if (index == 3) {
			return checkDb;
		} else if (index == 4) {
			return checkGlTab;
		} else if (index == 5) {
			return orgId;
		} else if (index == 6) {
			return ccyCd;
		} else if (index == 7) {
			return itemId;
		} else if (index == 8) {
			return Deb_Crd_Ind;
		} else if (index == 9) {
			// return acctBal+"";
			// return Double.toString(acctBal);
			return StringUtils.double2String(acctBal);
		} else {
			// return glBal+"";
			// return Double.toString(glBal);
			return StringUtils.double2String(glBal);
		}

	}
}
